import request from '@/utils/request'

// 用户列表
export const getuserlist = (data) => {
  return request({
    url: 'api/user/getuserlist',
    method: 'post',
    data: data
  })
}

export const getschoollist = (data) => {
  return request({
    url: 'api/school/getschoollist',
    method: 'post',
    data: data
  })
}

export const getrolelist = (data) => {
  return request({
    url: '/api/role/getrolelist',
    method: 'post',
    data: data
  })
}

export const adduser = (data) => {
  return request({
    url: '/api/user/adduser',
    method: 'post',
    data: data
  })
}


export const deluser = (data) => {
  return request({
    url: '/api/user/deluser',
    method: 'post',
    data: data
  })
}

export const enableuser = (data) => {
  return request({
    url: '/api/user/enableuser',
    method: 'post',
    data: data
  })
}
